import 'package:flutter/material.dart';

class IndexPageProvide with ChangeNotifier {
  //页面对应的下标
  int _currentIndex = 0;

  void setIndex(int currentIndex) {
    _currentIndex = currentIndex;
    notifyListeners();
  }

  int getIndex() {
    return _currentIndex;
  }
}
